<table class="statistike" cellspacing="0" cellpadding="0" border="1" width="1050" style="border-collapse: collapse; empty-cells: show;">

<tr>
    <th>Škola</th>
    <th>Grafički prikaz</th>
    <th>Prosek</th>
    <th>Br. ocena</th>
    <th>Br. profesora</th>
    <th>Br. učenika</th>
    <th>Br. izostanaka</th>
    <th>Opr.</th>
    <th>Neop.</th>
    <th>Predmeti</th>
    <th colspan="2">Zaključne</th>
  </tr>

<?php foreach($skola_lists as $skola_id => $skola){?>
  <tr>
    <th scope="row" class="skola_link" style="width: 250px;"><?php echo link_to($skola['ime'].' - '.$skola['mesto'], 'statistike/ocene?tip=razred&skola_id='.$skola_id) ?></th>
    <td class="graf"><img src="/images/graf.png" height="18" width="<?php echo $skola['prosek'] / 5 * 100 ?>%" /></td>
    <td><?php echo $skola['prosek'] ?></td>
    <td><?php echo $skola['br_ocena'] ?></td>
    <td><?php echo $skola['br_zaposlenih'] ?></td>
    <td><?php echo $skola['br_ucenika'] ?></td>
    <td><?php echo $skola['br_izostanaka'] ?></td>
    <td><?php echo $skola['opravdani'] ?></td>
    <td><?php echo $skola['neopravdani'] ?></td>
    <th scope="row" class="razred_link"><?php echo link_to('Predmeti', 'statistike/ocene?tip=skola&skola_id='.$skola_id) ?></th>
    <th scope="row" class="zekljucne_link"><?php echo link_to('I pol', 'statistike/zakljucne?period=1&skola_id='.$skola_id) ?></th>
    <th scope="row" class="zekljucne_link"><?php echo link_to('II pol', 'statistike/zakljucne?period=2&skola_id='.$skola_id) ?></th>
  </tr>
<?php }?>
</table>